home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / python2.6 / dist-packages / computerjanitorapp / ui_tests.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  1.4 KB  |  26 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import unittest
  5. import computerjanitor
  6. import computerjanitorapp
  7.  
  8. class UserInterfaceTests(unittest.TestCase):
  9.     
  10.     def setUp(self):
  11.         self.ui = computerjanitorapp.UserInterface('app', 'pm')
  12.  
  13.     
  14.     def testReturnsCorrectApp(self):
  15.         self.assertEqual(self.ui.app, 'app')
  16.  
  17.     
  18.     def testReturnsCorrectPluginManager(self):
  19.         self.assertEqual(self.ui.pm, 'pm')
  20.  
  21.     
  22.     def testRunRaisesUnimplemented(self):
  23.         self.assertRaises(computerjanitor.UnimplementedMethod, self.ui.run, None, None)
  24.  
  25.  
  26.